package com.atty.dms.dto.req;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * ClassName:DormitoryUpdateReqDTO
 * Package:com.atty.dms.dto.req
 * Description:
 *
 * @Author:tony
 * @Create :2025/4/15 15:28
 * @Version :1.0
 */
@Data
public class DormitoryUpdateReqDTO {

    /**
     * 宿舍id
     */
    @NotBlank(message = "宿舍id不能为空")
    private  String dormitoryId;


    /**
     * 宿舍编号
     */
    @NotBlank(message = "宿舍编号不能为空")
    private  String dormitoryNumber;

    /**
     * 宿舍容量
     */
    @NotNull(message = "宿舍容量不能为空")
    @Min(value = 1, message = "宿舍容量必须大于0")
    private  Integer capacity;

    /**
     * 宿舍类型 0=男生宿舍 1=女生宿舍
     */
    @NotNull(message = "宿舍类型不能为空")
    @Min(value = 0, message = "宿舍类型最小值为 0")
    @Max(value = 1, message = "宿舍类型最大值为 1")
    private  Integer type;
}
